package com.ethanzzh.ethanzzh_xdclass.model.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import javax.persistence.*;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Table(name = "chapter")
public class Chapter {
    @Id
    private Integer id;

    /**
     * 视频主键
     */
    @Column(name = "video_id")
    private Integer videoId;

    /**
     * 章节名称
     */
    private String title;

    /**
     * 章节顺序
     */
    private Integer ordered;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;
}